﻿@using StackExchange.Profiling
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jqGrid/ui.jqgrid.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jqueryui/cupertino/jquery-ui.css")" rel="stylesheet"
          type="text/css" />
    <link href="@Url.Content("~/Content/ez_css.css")" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .rightDiv
        {
            float: right;
            margin: 2px;
        }
    </style>
    <script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jqueryui/jquery-ui.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquerylayout/jquery.layout.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jqgrid/i18n/grid.locale-cn.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jqgrid/jquery.jqGrid.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Utility/Utility.js")" type="text/javascript"></script>
    <script type="text/javascript">
        $().ready(function () {
            $('body').layout({ applyDefaultStyles: true });
            hackLayoutPadding();
        });

        function hackLayoutPadding() {
            var width = $(".ui-layout-west").width();
            $(".ui-layout-west").css({ "padding": "0" }).width(width + 20);
        }
    </script>
</head>
<body>
    <div class="ui-layout-center">
        @RenderBody()
    </div>
    <div class="ui-layout-north">
        <div class="rightDiv">
            欢迎您：@User.Identity.Name|<a href="/account/logout/">退出</a>
        </div>
    </div>
    <div class="ui-layout-south">
        @MiniProfiler.RenderIncludes()
    </div>
    @* <div class="ui-layout-east">
        East
    </div>*@
    <div class="ui-layout-west" style="padding: 0;">
        @{
            Html.RenderAction("West", "Frame");
        }
    </div>
</body>
</html>
